package com.qianduo.front.servlet;

import java.io.IOException;

import javax.servlet.ServletException;
import javax.servlet.http.HttpServlet;
import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import com.qianduo.front.service.ReadDaikuanService;
import com.qianduo.front.util.Global;

public class InitServlet extends HttpServlet{
	private static final long serialVersionUID = -495957367008787645L;
	
	public void doGet(HttpServletRequest req,HttpServletResponse res) throws ServletException,IOException{
	}
	
	public void init() throws ServletException{
		super.init();
		
		//initThing();
	}

	public void initThing(){
		ReadDaikuanService service	= new ReadDaikuanService();
		Global.mapCompany			= service.getCompany();
		Global.mapDaikuanType		= service.getDaikuanType();
		Global.mapRepayment			= service.getRepayment();
		Global.citiesMap			= service.getCities();
	}
}
